Component({
  properties: {
    orderId: {
      type: String,
      value: ""
    }
  },
  data: {},
  methods: {
    orderChangeHandler(event) {
      console.log('orderChangeHandler', event)
      const timers = setTimeout(() => {
        // 页面重载
        const pages = getCurrentPages()
        // 声明一个pages使用getCurrentPages方法
        const curPage = pages[pages.length - 1]
        // 声明一个当前页面
        curPage.onLoad(curPage.options) // 传入参数
        curPage.onShow()
        clearTimeout(timers)
      }, 2000)
    },
    applyRefund(event) {
      console.log('applyRefund', event)
      return new Promise((resolve) => {
        resolve({name: 'test'})
      })
    },
    handleRefund(event) {
      console.log('handleRefund', event)
    }
  }
})
